package com.wantong.jianpu.viewmodels;

import android.app.Application;
import android.view.View;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.listener.OnItemClickListener;
import com.wantong.jianpu.activitys.TourChildDetailActivity;
import com.wantong.jianpu.adapters.TourListAdapter;
import com.wantong.jianpu.utils.Constants;

import me.goldze.mvvmhabit.base.BaseViewModel;

/**
 * @author PACY
 * @date 2022/5/6
 * description:
 */
public class TourDetailFViewModel extends BaseViewModel {
    public TourListAdapter mAdapter;
    public TourDetailFViewModel(@NonNull Application application) {
        super(application);
    }

    @Override
    protected void init() {
        super.init();
        initAdapter();
    }

    private void initAdapter(){
        mAdapter=new TourListAdapter();
        mAdapter.setOnItemClickListener((adapter, view, position) -> {
            startActivity(TourChildDetailActivity.class);
        });
    }
}
